from PyQt5.uic.properties import QtCore


class QSSLoader:
    def __init__(self):
        pass

    @staticmethod
    def read_qss_file(qss_file_name):
        with open(qss_file_name, 'r',  encoding='UTF-8') as file:
            return file.read()

    @staticmethod
    def read_qss_qrc(qss_qrc_url):
        file = QtCore.QFile(qss_qrc_url)
        file.open(QtCore.QFile.ReadOnly)
        return str(file.readAll())[1:]